//
//  LXHeaderView.m
//  灵秀
//
//  Created by 李田 on 17/3/19.
//  Copyright © 2017年 tianyao. All rights reserved.
//

#import "LXHeaderView.h"

@implementation LXHeaderView

-(instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier
{
    
    if (self = [super initWithReuseIdentifier:reuseIdentifier]) {
        
        //1.设置背景色
        self.contentView.backgroundColor = [UIColor cz_colorWithHex:0xf8f8f8];
        
        //2.titleLabel
        UILabel *headerLabel = [UILabel cz_labelWithText:@"124" fontSize:12 color:[UIColor cz_colorWithHex:0x404040]];
        [self.contentView addSubview:headerLabel];
        
        [headerLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            
            make.left.equalTo(self.contentView).offset(10);
            make.centerY.equalTo(self.contentView);
        }];
        
        _headerLabel = headerLabel;
    }
    
    return self;
}


@end
